The HttpResponse
PHP Manual

HttpResponse::setStream

(PECL pecl_http >= 0.10.0)

HttpResponse::setStreamSet stream

Descripción

static bool HttpResponse::setStream ( resource $stream )

Set the resource to be sent.

Note: Previously calculated or defined ETag and Last-Modified will be recalculated and redefined.

Lista de parámetros

stream

already opened stream from which the data to send will be read

Valores retornados

Devuelve TRUE si todo se llevó a cabo correctamente, FALSE en caso de fallo.

Ver también


The HttpResponse
PHP Manual